package com.axjy.comm.client;

import com.axjy.comm.vo.JobAndTrigger;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


public interface QuartzClient {

    @RequestMapping("/quartz/add")
    void add(@RequestBody JobAndTrigger jobAndTrigger);

    @RequestMapping("/quartz/del")
    void del(@RequestBody JobAndTrigger jobAndTrigger);

    @RequestMapping("/quartz/update")
    void update(@RequestBody JobAndTrigger jobAndTrigger);


    @RequestMapping("/quartz/searchAll")
    List<JobAndTrigger> searchAll();

    @RequestMapping("/quartz/pause")
    void pause(@RequestBody JobAndTrigger jobAndTrigger);

    @RequestMapping("/quartz/resume")
    void resume(@RequestBody JobAndTrigger jobAndTrigger);


}
